export default function() {
    const data = [{
        id: 1,
        province: "四川省",
        name: "电子科技大学成都学院"
    }]
    const provinceList = [...new Set(data.map(value => data.province))]
    provinceList.map(value => {
        const result = {
            text: value,
            children: []
        }
        data.filter(x => x.province === value).forEach(x => {
            result.children.push({
                text: x.name,
                value: x.id
            })
        })
        return result
    })
}